package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_configs")
public class IotConfigs implements Serializable {

    private static final long serialVersionUID= 3678445380802306230L;

    /**
     * 自增长ID
     */
    @ApiModelProperty(value = "自增长ID")
    @TableId(value = "config_id", type = IdType.AUTO)
    private Integer configId;

    /**
     * 配置名称
     */
    @ApiModelProperty(value = "配置名称")
    private String configName;

    /**
     * 配置说明
     */
    @ApiModelProperty(value = "配置说明")
    private String configDescribe;

    /**
     * 配置下限值
     */
    @ApiModelProperty(value = "配置下限值")
    private Integer configLowvalue;

    /**
     * 配置上限值
     */
    @ApiModelProperty(value = "配置上限值")
    private Integer configUpvalue;

    /**
     * 配置值
     */
    @ApiModelProperty(value = "配置值")
    private Integer configValue;

    /**
     * 配置类型 1=单值配置 2=区间配置
     */
    @ApiModelProperty(value = "配置类型 1=单值配置 2=区间配置 ")
    private Integer configType;

    /**
     * 配置键 SLEEP MOVE ANGLE
     */
    @ApiModelProperty(value = "配置键 SLEEP MOVE ANGLE")
    private String configKey;

    /**
     * 配置时间周期 单位：分钟
     */
    @ApiModelProperty(value = "配置时间周期 单位：分钟")
    private Integer configTimespan;

    /**
     * 配置时间值 单位：分钟
     */
    @ApiModelProperty(value = "配置时间值 单位：分钟")
    private Integer configTimevalue;

    /**
     * 配置状态 1=启用 0=弃用
     */
    @ApiModelProperty(value = "配置状态 1=启用 0=弃用")
    private Integer configStatus;

    /**
     * 配置值 结果占比
     */
    @ApiModelProperty(value = "配置值 结果占比")
    private Double configPercent;


    public Integer getConfigId() {
        return configId;
    }

    public void setConfigId(Integer configId) {
        this.configId = configId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigDescribe() {
        return configDescribe;
    }

    public void setConfigDescribe(String configDescribe) {
        this.configDescribe = configDescribe;
    }

    public Integer getConfigLowvalue() {
        return configLowvalue;
    }

    public void setConfigLowvalue(Integer configLowvalue) {
        this.configLowvalue = configLowvalue;
    }

    public Integer getConfigUpvalue() {
        return configUpvalue;
    }

    public void setConfigUpvalue(Integer configUpvalue) {
        this.configUpvalue = configUpvalue;
    }

    public Integer getConfigValue() {
        return configValue;
    }

    public void setConfigValue(Integer configValue) {
        this.configValue = configValue;
    }

    public Integer getConfigType() {
        return configType;
    }

    public void setConfigType(Integer configType) {
        this.configType = configType;
    }

    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String configKey) {
        this.configKey = configKey;
    }

    public Integer getConfigTimespan() {
        return configTimespan;
    }

    public void setConfigTimespan(Integer configTimespan) {
        this.configTimespan = configTimespan;
    }

    public Integer getConfigTimevalue() {
        return configTimevalue;
    }

    public void setConfigTimevalue(Integer configTimevalue) {
        this.configTimevalue = configTimevalue;
    }

    public Integer getConfigStatus() {
        return configStatus;
    }

    public void setConfigStatus(Integer configStatus) {
        this.configStatus = configStatus;
    }

    public Double getConfigPercent() {
        return configPercent;
    }

    public void setConfigPercent(Double configPercent) {
        this.configPercent = configPercent;
    }

    @Override
    public String toString() {
        return "IotConfigs{" +
                "configId=" + configId +
                ", configName=" + configName +
                ", configDescribe=" + configDescribe +
                ", configLowvalue=" + configLowvalue +
                ", configUpvalue=" + configUpvalue +
                ", configValue=" + configValue +
                ", configType=" + configType +
                ", configKey=" + configKey +
                ", configTimespan=" + configTimespan +
                ", configTimevalue=" + configTimevalue +
                ", configStatus=" + configStatus +
                ", configPercent=" + configPercent +
                "}";
    }
}
